<?php

use yii\db\Schema;
use yii\db\Migration;

class m160307_063947_remove_adspace_form_field extends Migration
{
    public function up()
    {
        $this->dropColumn('{{%adspace}}', 'form');
    }

    public function down()
    {
        return $this->addColumn('{{%adspace}}', 'form', "int(1) NOT NULL DEFAULT '1' COMMENT '1 banner, 2 video'");
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
